package edu.qichen.onlineBlog.user.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/4/20 11:30
 */
@Data
public class UserAddReq {
    @NotBlank
    private String username;
    @NotBlank
    private String nickname;
    @NotBlank
    @Pattern(regexp = "^[a-zA-Z0-9_\\-]+@qq.com$")
    private String email;
    @NotBlank
    private String role;
}
